Syntax
of Command Messages
MCI command
messages consist of the following three elements:
A constant message value
A structure containing
parameters for the command
A set of flags specifying
options for the command and validating fields in the parameter block
The following
example sends the MCI_PLAY
mciSendCommand(wDeviceID, // device identifier
MCI_PLAY,
// command message
0, // flags
(DWORD)(LPVOID) &mciPlayParms);
// parameter block
The device
identifier given in the first parameter is retrieved when the device is opened
using the MCI_OPEN